package com.fy.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 读取项目相关配置
 */
@Component
@Data
@ConfigurationProperties(prefix = "file")
public class FileConfig {

    // 上传路径
    private String profile;
    // web url 前缀
    private String pre;

    public String getProfileSimple() {
        return profile + pre;
    }


}